package com.itheima.dao.impl;

import com.itheima.dao.BookDao;

import java.util.*;

/**
 * @author: dh
 * @date: 2023-10-25 10:42
 */
public class BookDaoImpl implements BookDao {

    // 1.声明属性.
    private int[] array;

    private List<String> list;

    private Set<String> set;

    private Map<String, String> map;

    private Properties properties;

    @Override
    public void save() {

        System.out.println("book dao save ...");

        System.out.println("遍历数组:" + Arrays.toString(array));

        System.out.println("遍历List" + list);

        System.out.println("遍历Set" + set);

        System.out.println("遍历Map" + map);

        System.out.println("遍历Properties" + properties);
    }

    public void setArray(int[] array) {

        this.array = array;
    }

    public void setList(List<String> list) {

        this.list = list;
    }

    public void setSet(Set<String> set) {

        this.set = set;
    }

    public void setMap(Map<String, String> map) {

        this.map = map;
    }

    public void setProperties(Properties properties) {

        this.properties = properties;
    }
}
